package service;

import java.util.List;

import bean.Address;
import bean.AddressRowMapper;
import common.BaseDAO;

public class AddressDAO extends BaseDAO {
	public List<Address> queryByUserid(int userid){
		String sql="select * from address_info where userid=?";
		return this.query(sql, new AddressRowMapper(), userid);
	}
	
	public List<Address> queryByAddressid(int addressid){
		String sql="select * from address_info where addressid=?";
		return this.query(sql, new AddressRowMapper(), addressid);
	}
}
